"""This module is intended to retrieve the passwords the application need.
These passwords are stocked in a configuration file.
"""

from ConfigParser import ConfigParser


def load_passwords(app_conf):
  """Returns dict of passwords from the passwords_file file.
  
  Arguments:
    - app_conf: The application's local configuration.
  """
  c = ConfigParser()
  c.read(app_conf['passwords_file'])
  
  return dict(c.items('SECRETS'))
  
